package com.google.gwt.sample.contacts.server;

import com.google.inject.Singleton;
import com.google.inject.servlet.ServletModule;

import com.guit.server.guice.GuiceRemoteServiceServlet;
import com.guit.server.guice.GuitModule;

/**
 * Servlet module.
 */
public class MyServletModule extends ServletModule {

    @Override
    protected void configureServlets() {

        serve("/contacts/service").with(GuiceRemoteServiceServlet.class);

        bind(DataUtil.class).in(Singleton.class);

        // Command servlet
        install(new GuitModule());
    }
}
